
import java.util.Scanner;

class VICE12 {

    static Scanner entrada = new Scanner(System.in);

    public static void main(String[] args) {

        int A = entrada.nextInt();
        int B = entrada.nextInt();
        int C = entrada.nextInt();

        if ((B > A & B > C & A > C) || (C > A & C > B & A > B)) {
            System.out.println(A);
        } else if ((A > B & A > C & B > C) || (C > A & C > B & B > A)) {
            System.out.println(B);
        } else {
            System.out.println(C);
        }
    }
}
